//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class AlphaModulateFixedEffect : Effect
    {
        private int amt;

        public int Amount
        {
            get { return amt; }
            set { amt = value; }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("alphaModFix"))
            {
                Amount = c.GetOptionalInteger("amt", 100000); //\\
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("alphaModFix"))
            {
                c.SetOptionalInteger("amt", Amount, 100000); //\\
            }
        }
    }
}